package com.prawn.ift.ctrlequipment.service;

import com.prawn.ift.ctrlequipment.pojo.CtrlequipmentTypeState;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface CtrlequipmentTypeStateService {

    /**
     * 查询全部列表
     * @return
     */
     List<CtrlequipmentTypeState> findAll();


    /**
     * 条件查询+分页
     * @param whereMap
     * @param page
     * @param size
     * @return
     */
    Page<CtrlequipmentTypeState> findSearch(Map whereMap, int page, int size);


    /**
     * 条件查询
     * @param whereMap
     * @return
     */
    List<CtrlequipmentTypeState> findSearch(Map whereMap) ;

    /**
     * 根据ID查询实体
     * @param id
     * @return
     */
    CtrlequipmentTypeState findById(String id);

    /**
     * 增加
     * @param ctrlequipmentTypeState
     */
    void add(CtrlequipmentTypeState ctrlequipmentTypeState);

    /**
     * 修改
     * @param ctrlequipmentTypeState
     */
    void update(CtrlequipmentTypeState ctrlequipmentTypeState) ;

    /**
     * 删除
     * @param id
     */
    void deleteById(String id);


}
